var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2ADManager = require("ADManager");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_WechatImgControl = /* */function (_cc$Component82) {
  babel_inherits(l, _cc$Component82);
  var _super100 = babel_createSuper(l);
  function l() {
    var _this235;
    babel_classCallCheck(this, l);
    _this235 = _super100.apply(this, arguments);
    _this235.img = null;
    return _this235;
  }
  babel_createClass(l, [{
    key: "onLoad",
    value: function onLoad() {
      $2ADManager.default.instance.sdkType == $2ADManager.SDK_TYPE.WeChat && (this.node.getComponent(cc.Sprite).spriteFrame = this.img);
    }
  }]);
  return l;
}(cc.Component);
cc__decorate([ccp_property(cc.SpriteFrame)], def_WechatImgControl.prototype, "img", undefined);
def_WechatImgControl = cc__decorate([ccp_ccclass], def_WechatImgControl);
exports.default = def_WechatImgControl;